From: Florian Müllner Date: Mon, 25 Sep 2017 13:26:14 +0000 (+0200) Subject: windowManager: Disable OSK gesture on lock screen X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6321bbb77330120432b7cbc80259883d8d057d7f;p=gnome-shell.git windowManager: Disable OSK gesture on lock screen On the screen shield, the only possible interaction is lifting the shield. The on-screen-keyboard is not useful for that, and the drag gesture from the bottom may in fact conflict with dragging up the shield, so disable it. https://bugzilla.gnome.org/show_bug.cgi?id=788339 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index dbc2acf3d..a59b3fd92 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -985,7 +985,8 @@ var WindowManager = new Lang.Class({ gesture.connect('activated', Lang.bind(this, this._switchApp)); global.stage.add_action(gesture); - gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, Shell.ActionMode.ALL); + let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN; + gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, mode); gesture.connect('activated', Lang.bind(this, function() { Main.keyboard.show(Main.layoutManager.bottomIndex); }));